<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <br/>
            <h3 class="title">Visualizar DNE</h3>
            <h:form id="dneForm" enctype="multipart/form-data">
                <p:growl id="messages" showDetail="false" autoUpdate="true"  /> 
                <p:panel id="personPanel" style="background: none; border: none;" 
                         styleClass="container_24 clearfix both ">
                    <h4 class="title">Dados Gerais</h4>

                    <p:outputLabel value="CEP" styleClass="grid_3" for="cepMask" />
                    <p:inputMask id="cepMask" value="#{managerDne.dne.cep}" mask="99.999-999"
                                 styleClass="grid_5" readonly="true"/>
                    <div class="clear-both" />

                    <p:outputLabel for="patioInput" value="Logradouro" styleClass="grid_3"/>
                    <p:inputText id="patioInput" value="#{managerDne.dne.rua}"
                                 styleClass="grid_20" readonly="true" /> 
                    <div class="clear-both" />

                    <p:outputLabel value="Cidade" styleClass="grid_3" for="cidadeInputText" />
                    <p:inputText id="cidadeInputText" value="#{managerDne.cidade.nome}"
                                    styleClass="grid_20" readonly="true" />

                    <div class="clear-both" />
                    <p:outputLabel value="Bairro" styleClass="grid_3" for="bairroInputText" />
                    <p:inputText id="bairroInputText" value="#{managerDne.bairro.nome}"
                                 styleClass="grid_20" readonly="true" />
                    <div class="clear"/> 
                </p:panel>

                <br/>
                <div class="buttonAction">
                    <p:button href="pesquisardne.xhtml" value="Voltar"  icon="ui-icon-arrowreturnthick-1-w" />
                </div >
            </h:form>
        </ui:define>
    </ui:composition>

</html>
